﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="OA.aspx.Login" %>

<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title><%=System.Configuration.ConfigurationManager.AppSettings["SYSTitle"]%></title>
    <link rel="stylesheet" href="../../css/login.css" />
</head>

<body onload="" scroll="auto">
    <form name="form1" id="form1" action="Login.aspx" runat="server" method="post" autocomplete="on">

        <div id="center">

            <div id="form">
                <div class="formtop">
                    智慧云办公
                </div>
                <div class="inputer">
                    <div class="user">
                        <input type="text" id="TxtUserName" placeholder="用户名" runat="server" class="text" name="UNAME" maxlength="20" onmouseover="this.focus()" onfocus="this.select()" value="">
                    </div>
                    <div class="pwd">
                        <input type="password" id="TxtUserPwd" placeholder="密码" runat="server" class="text" name="PASSWORD" onmouseover="this.focus()" onfocus="this.select()" value="" />
                    </div>
                    <div class="btn">
                        <input type="hidden" name="encode_type" value="1">
                        <input id="btnSubmit" type="submit" name="btnSubmit" onmouseenter="addClass(this,'submit-hover');" onmouseout="removeClass(this,'submit-hover');" class="submit" value="登录" />

                    </div>
                    <div style="font-size: 15px; color: red; margin-left: 32px;">
                        <span id="Error" runat="server"></span>
                    </div>
                </div>

            </div>
            <div class="clear"></div>
            <div class="bg-item-1"></div>
            <div class="bg-item-2"></div>
        </div>
    </form>
</body>


<script src="../JS/jquery-1.8.2.min.js"></script>
<script src="../common-js/bootstrap/bootstrap.min.js"></script>
<script>
    function addClass(el, className) {
        var element = el;
        if (element.className == "") {
            element.className = className;
        } else {
            element.className += " " + className;
        }
    }

    function removeClass(el, className) {
        var element = el;
        var originClassName = element.className;
        var index = originClassName.indexOf(className);
        element.className = originClassName.slice(0, index) + originClassName.slice(index + className.length + 1);
        //element.className = element.className.trim();
        if (element.className.charAt(element.className.length - 1) == " ") {
            element.className = element.className.slice(0, element.className.length - 1);
        }
    }

</script>

</html>

